﻿using System;

namespace UniRx
{
	// Token: 0x020001F5 RID: 501
	public sealed class BooleanDisposable : IDisposable, ICancelable
	{
		// Token: 0x06000A81 RID: 2689 RVA: 0x0003833C File Offset: 0x0003673C
		public BooleanDisposable()
		{
		}

		// Token: 0x06000A82 RID: 2690 RVA: 0x00038344 File Offset: 0x00036744
		internal BooleanDisposable(bool isDisposed)
		{
			this.IsDisposed = isDisposed;
		}

		// Token: 0x170000CF RID: 207
		// (get) Token: 0x06000A83 RID: 2691 RVA: 0x00038353 File Offset: 0x00036753
		// (set) Token: 0x06000A84 RID: 2692 RVA: 0x0003835B File Offset: 0x0003675B
		public bool IsDisposed { get; private set; }

		// Token: 0x06000A85 RID: 2693 RVA: 0x00038364 File Offset: 0x00036764
		public void Dispose()
		{
			if (!this.IsDisposed)
			{
				this.IsDisposed = true;
			}
		}
	}
}
